package com.xzq.bizimpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xzq.biz.AuthorityBiz;
import com.xzq.dao.AuthorityDao;
import com.xzq.entity.Authority;
import com.xzq.entity.Page;
@Service
public class AuthorityBizImpl implements AuthorityBiz {
	@Resource
	private AuthorityDao dao;
	@Override
	public List<Authority> findAllAuthority() {
		List<Authority> list = dao.findAllAuthority();
		return list;
	}

	@Override
	public Page findAllAuthorityByPage(Page page) {
		page = dao.findAllAuthorityByPage(page);
		return page;
	}

	@Override
	public Authority findOneAuthority(Authority authority) {
		authority = dao.findOneAuthority(authority);
		return authority;
	}

	@Override
	public int modifyAuthority(Authority authority) {
		int count = dao.modifyAuthority(authority);
		return count;
	}

	@Override
	public int addAuthority(Authority authority) {
		int count = dao.addAuthority(authority);
		return count;
	}

	@Override
	public int deleteAuthority(Authority authority) {
		int count = dao.deleteAuthority(authority);
		return count;
	}

}
